<?php 
 include_once '../../conn/all.php';
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.htm?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>栏目管理</title>
</head>
<script language = 'JavaScript'>
var classcount;
subclass = new Array();
<?php 
	 	 session_start();
		$user=$_SESSION["unc"];
	 	$i=0;
	 	$res=sql('s', 'colum','*','where user="'.$user.'" and class=0');
	 foreach ($res as $info){
	 		$id=$info["id"];
			$res1=sql('s', 'colum','*','where user="'.$user.'" and class='.$id);
			if ($res1!='') {
				foreach ($res1 as $info1){
				
?>
					subclass[<?=$i; ?>] = new Array('<?=$info1['id']; ?>','<?=$info['id']; ?>','<?=$info['id']; ?>');
<?php 				
		$i=$i+1;
				}
			}else{
				
			}
		}
?>

classcount=<?=$i;?>;
</script>
<body id="column">


<div id="languge">
	<ul id="langlist">

        <li class="onlang"><a class="lang" href="?lang=cn" onclick="return duolang('cn');" title="简体中文">简体中文</a></li>

    

        <div class="clear"></div>
    </ul>
</div>

<script type="text/javascript">
$(document).ready(function()
	{
		$("form :input").change(function ()
		{
			$('form').data('changed',true);
		});
	}
	);
function duolang(lang){
	if($('form').data('changed')){
		if(!confirm(user_msg['js10']))return false;
		else{
			langCookie(lang); 
		}
	}else{
		langCookie(lang); 
	}
}
function langCookie(lang){
	parent.$.cookie('langget',null);
    parent.$.cookie('langget', 20);
	parent.location.href='../index.htm?lang='+lang;
}
</script>

	<table cellpadding="2" cellspacing="1" class="table">
		<tr>
	
			<td colspan="3" class="centle">
				<a href="index.htm?lang=cn&columnshow=1" style="float:right; padding-right:10px;">展开所有(子级栏目)</a>
				&nbsp;&nbsp;<a href="add_colum.php?id=0" onclick="return addcolumn($(this),'',1);">添加一级栏目</a>&nbsp;&nbsp;
				<font style='font-weight:normal; color:#999;'>排序越小越靠前</font>
				<span id="loadtxt"></span>
			</td>
		</tr>
			 <tr>
			 <td colspan="3">
			  <form name="del" method="Post" action="../control.php?oper=colum">
			  <table cellpadding="0" cellspacing="0" class="table neitable" style="margin:0px; border:none;">
			  <tr> 
			<td class="list">选择</td>
			<td class="list">排序</td>
			<td class="list">栏目名称</td>
			<td class="list">导航栏显示</td>
	
			<td class="list">所属模块</td>
			<td class="list">栏目文件夹</td>
			<td class="list">模块标识</td>
	
			<td class="list">权限</td>
					
			<td class="list">操作</td>
		</tr>
<?php 

	 	$res=sql('s', 'colum','*','where user="'.$user.'"  and class="0"');
	 	if(arrayLevel($res)>1){
	     foreach ($res as $info){
	 		$id=$info["id"];
	 	
			$res1=sql('s', 'colum','*','where user="'.$user.'" and class='.$id);
			$res2=sql('frow', 'colum','*','where user="'.$user.'"  and class='.$id);
			if ($res1!='') {
?>
	 <tr class="mouse click column_1">
			<td class="list-text">
				<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$info['id']; ?>' />
			</td>
			<td class="list-text">
				<input type="text" class="text no_order" value="<?=$info['wed_order']; ?>" name="no_order_<?=$info['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="0" name="bigclass_<?=$info['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info['id']; ?>" />
				<input type="hidden" value="1" name="classtype_<?=$info['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info['id']; ?>" />
				</div>
			</td>
			<td class="list-text blues" style="text-align:left;">
				<img src='../templates/met/images/columnx.gif' class='columnimg' id='img_<?=$info['id']; ?>' onclick="oncolumn($(this),'<?=$info['id']; ?>','../templates/met/images');" alt='' /><input type="text" class="text nonull" value="<?=$info['name']; ?>" name="name_<?=$info['id']; ?>" />&nbsp;<a href='add_colum.php?lang=cn&id=<?=$info['id']; ?>&type=2&action=add' onclick="return addcolumn($(this),'<?=$info['id']; ?>',2,'../templates/met/images');" class='hovertips'><span>添加二级栏目</span></a>
			</td>
			<td class="list-text">
			<select name="nav_<?=$info['id']; ?>">
	
				<option value="0" <?php  if ($info['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

			<td class="list-text">
			<select name="module_<?=$info['id']; ?>" >

<option value="-1" selected='selected'>父栏目模块</option>

            </select>
			</td>
			<td class="list-text">tempel</td>
			<td class="list-text"><input type="text" class="text no_order" value="<?=$info['home_order']; ?>" name="index_num_<?=$info['id']; ?>" /></td>
			

	
			<td class="list-text">
				<select name="access_<?=$info['id']; ?>">
	
			<option value="0" <?php  if ($info['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>				
  					
			<td class="list-text">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info['id']; ?>">编辑</a>&nbsp;&nbsp;<!--  <a href="../control.php?oper=column_del&id=<?=$info['id']; ?>" onClick="return linkSmit($(this),1);" >删除</a>--></div>
			</td>
        </tr>	
<?php       
	if ($res2=='1') {
		$info1=$res1;
		?>
		
		<tr id="class_<?=$info1['id']; ?>" class="none mouse click columnz_<?=$info['id']; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$info1['id']; ?>');" id="id" value='<?=$info1['id']; ?>' bgid_<?=$info['id']; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="<?=$info1['wed_order']; ?>" name="no_order_<?=$info1['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="<?=$info['wed_order']; ?>" name="bigclass_<?=$info1['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info1['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info1['id']; ?>" />
				<input type="hidden" value="2" name="classtype_<?=$info1['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info1['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info1['id']; ?>" />
				</div>
			</td>
            <td class="list-text2" id="tr<?=$info1['id']; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="<?=$info1['name']; ?>" name="name_<?=$info1['id']; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$info1['id']; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$info1['id']; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$info1['id']; ?>">
	
				<option value="0" <?php  if ($info1['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info1['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info1['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info1['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
            <select name="module_<?=$info['id']; ?>" >

<option value="1" <?php  if ($info1['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info1['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info1['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info1['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info1['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info1['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info1['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info1['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info1['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="<?=$info1['home_order']; ?>" name="index_num_<?=$info1['id']; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$info1['id']; ?>">
	
			<option value="0" <?php  if ($info1['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info1['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info1['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info1['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info1['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info1['id']; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
		
		
		<?php 
	}else{
		
	
 	foreach ($res1 as $info1){			
?>       
   <tr id="class_<?=$info1['id']; ?>" class="none mouse click columnz_<?=$info['id']; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$info1['id']; ?>');" id="id" value='<?=$info1['id']; ?>' bgid_<?=$info['id']; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="<?=$info1['wed_order']; ?>" name="no_order_<?=$info1['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="<?=$info['wed_order']; ?>" name="bigclass_<?=$info1['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info1['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info1['id']; ?>" />
				<input type="hidden" value="2" name="classtype_<?=$info1['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info1['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info1['id']; ?>" />
				</div>
			</td>
            <td class="list-text2" id="tr<?=$info1['id']; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="<?=$info1['name']; ?>" name="name_<?=$info1['id']; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$info1['id']; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$info1['id']; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$info1['id']; ?>">
	
				<option value="0" <?php  if ($info1['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info1['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info1['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info1['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
                        <select name="module_<?=$info1['id']; ?>" >

<option value="1" <?php  if ($info1['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info1['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info1['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info1['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info1['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info1['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info1['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info1['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info1['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="<?=$info1['home_order']; ?>" name="index_num_<?=$info1['id']; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$info1['id']; ?>">
	
			<option value="0" <?php  if ($info1['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info1['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info1['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info1['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info1['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info1['id']; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
        
 <?php 				
		$i=$i+1;
				}}
			}else{
		
?>
	 <tr class="mouse click column_1">
			<td class="list-text">
				<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$info['id']; ?>' />
			</td>
			<td class="list-text">
				<input type="text" class="text no_order" value="<?=$info['wed_order']; ?>" name="no_order_<?=$info['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="0" name="bigclass_<?=$info['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info['id']; ?>" />
				<input type="hidden" value="<?=$info['id']; ?>" name="module_<?=$info['id']; ?>" />
				<input type="hidden" value="1" name="classtype_<?=$info['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info['id']; ?>" />
				</div>
			</td>
			<td class="list-text blues" style="text-align:left;">
				<img src='../templates/met/images/columnnox.gif' style='margin:0px 5px;' /><input type="text" class="text nonull" value="<?=$info['name']; ?>" name="name_<?=$info['id']; ?>" />&nbsp;<?php if($info['module']=='-1'){ ?><a href='add_colum.php?lang=cn&id=<?=$info['id']; ?>&type=2&action=add' onclick="return addcolumn($(this),'<?=$info['id']; ?>',2,'../templates/met/images');" class='hovertips'><span>添加二级栏目</span></a><?php } ?>
			</td>
			<td class="list-text">
			<select name="nav_<?=$info['id']; ?>">
	
				<option value="0" <?php  if ($info['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

			<td class="list-text">
			
						<select name="module_<?=$info['id']; ?>" >
<option value="-1" <?php  if ($info['module']=="-1") { echo "selected='selected'";}?>>父栏目模块</option>
<option value="1" <?php  if ($info['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
			</td>
			<td class="list-text">tempel</td>
			<td class="list-text"><input type="text" class="text no_order" value="<?=$info['home_order']; ?>" name="index_num_<?=$info['id']; ?>" /></td>
			

	
			<td class="list-text">
				<select name="access_<?=$info['id']; ?>">
	
			<option value="0" <?php  if ($info['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>				
  					
			<td class="list-text">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info['id']; ?>" onClick="return linkSmit($(this),1);" >删除</a></div>
			</td>
        </tr>	
 <?php 
 		}
 	}	
}elseif(arrayLevel($res)==1){
	$info=$res;
	$id=$info["id"];
	 
	$res1=sql('s', 'colum','*','where user="'.$user.'" and class='.$id);
	$res2=sql('frow', 'colum','*','where user="'.$user.'"  and class='.$id);
	if ($res1!='') {
		?>
	 <tr class="mouse click column_1">
			<td class="list-text">
				<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$info['id']; ?>' />
			</td>
			<td class="list-text">
				<input type="text" class="text no_order" value="<?=$info['wed_order']; ?>" name="no_order_<?=$info['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="0" name="bigclass_<?=$info['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info['id']; ?>" />
				<input type="hidden" value="1" name="classtype_<?=$info['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info['id']; ?>" />
				</div>
			</td>
			<td class="list-text blues" style="text-align:left;">
				<img src='../templates/met/images/columnx.gif' class='columnimg' id='img_<?=$info['id']; ?>' onclick="oncolumn($(this),'<?=$info['id']; ?>','../templates/met/images');" alt='' /><input type="text" class="text nonull" value="<?=$info['name']; ?>" name="name_<?=$info['id']; ?>" />&nbsp;<a href='add_colum.php?lang=cn&id=<?=$info['id']; ?>&type=2&action=add' onclick="return addcolumn($(this),'<?=$info['id']; ?>',2,'../templates/met/images');" class='hovertips'><span>添加二级栏目</span></a>
			</td>
			<td class="list-text">
			<select name="nav_<?=$info['id']; ?>">
	
				<option value="0" <?php  if ($info['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

			<td class="list-text">
			<select name="module_<?=$info['id']; ?>" >

<option value="-1" selected='selected'>父栏目模块</option>

            </select>
			</td>
			<td class="list-text">tempel</td>
			<td class="list-text"><input type="text" class="text no_order" value="<?=$info['home_order']; ?>" name="index_num_<?=$info['id']; ?>" /></td>
			

	
			<td class="list-text">
				<select name="access_<?=$info['id']; ?>">
	
			<option value="0" <?php  if ($info['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>				
  					
			<td class="list-text">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info['id']; ?>">编辑</a>&nbsp;&nbsp;<!--  <a href="../control.php?oper=column_del&id=<?=$info['id']; ?>" onClick="return linkSmit($(this),1);" >删除</a>--></div>
			</td>
        </tr>	
<?php       
	if ($res2=='1') {
		$info1=$res1;
		?>
		
		<tr id="class_<?=$info1['id']; ?>" class="none mouse click columnz_<?=$info['id']; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$info1['id']; ?>');" id="id" value='<?=$info1['id']; ?>' bgid_<?=$info['id']; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="<?=$info1['wed_order']; ?>" name="no_order_<?=$info1['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="<?=$info['wed_order']; ?>" name="bigclass_<?=$info1['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info1['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info1['id']; ?>" />
				<input type="hidden" value="2" name="classtype_<?=$info1['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info1['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info1['id']; ?>" />
				</div>
			</td>
            <td class="list-text2" id="tr<?=$info1['id']; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="<?=$info1['name']; ?>" name="name_<?=$info1['id']; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$info1['id']; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$info1['id']; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$info1['id']; ?>">
	
				<option value="0" <?php  if ($info1['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info1['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info1['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info1['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
            <select name="module_<?=$info['id']; ?>" >

<option value="1" <?php  if ($info1['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info1['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info1['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info1['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info1['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info1['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info1['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info1['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info1['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="<?=$info1['home_order']; ?>" name="index_num_<?=$info1['id']; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$info1['id']; ?>">
	
			<option value="0" <?php  if ($info1['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info1['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info1['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info1['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info1['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info1['id']; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
		
		
		<?php 
	}else{
		
	
 	foreach ($res1 as $info1){			
?>       
   <tr id="class_<?=$info1['id']; ?>" class="none mouse click columnz_<?=$info['id']; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$info1['id']; ?>');" id="id" value='<?=$info1['id']; ?>' bgid_<?=$info['id']; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="<?=$info1['wed_order']; ?>" name="no_order_<?=$info1['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="<?=$info['wed_order']; ?>" name="bigclass_<?=$info1['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info1['id']; ?>" />
				<input type="hidden" value="4" name="module_<?=$info1['id']; ?>" />
				<input type="hidden" value="2" name="classtype_<?=$info1['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info1['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info1['id']; ?>" />
				</div>
			</td>
            <td class="list-text2" id="tr<?=$info1['id']; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="<?=$info1['name']; ?>" name="name_<?=$info1['id']; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$info1['id']; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$info1['id']; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$info1['id']; ?>">
	
				<option value="0" <?php  if ($info1['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info1['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info1['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info1['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
                        <select name="module_<?=$info['id']; ?>" >

<option value="1" <?php  if ($info1['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info1['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info1['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info1['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info1['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info1['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info1['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info1['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info1['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="<?=$info1['home_order']; ?>" name="index_num_<?=$info1['id']; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$info1['id']; ?>">
	
			<option value="0" <?php  if ($info1['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info1['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info1['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info1['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info1['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info1['id']; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
        
 <?php 				
		$i=$i+1;
				}}
			}else{
		
?>
	 <tr class="mouse click column_1">
			<td class="list-text">
				<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$info['id']; ?>' />
			</td>
			<td class="list-text">
				<input type="text" class="text no_order" value="<?=$info['wed_order']; ?>" name="no_order_<?=$info['id']; ?>" />
				<div style='display:none;'>
				<input type="hidden" value="0" name="bigclass_<?=$info['id']; ?>" />
				<input type="hidden" value="tempel" name="foldername_<?=$info['id']; ?>" />
				<input type="hidden" value="<?=$info['id']; ?>" name="module_<?=$info['id']; ?>" />
				<input type="hidden" value="1" name="classtype_<?=$info['id']; ?>" />
				<input type="hidden" value="" name="out_url_<?=$info['id']; ?>" />
				<input type="hidden" value="0" name="if_in_<?=$info['id']; ?>" />
				</div>
			</td>
			<td class="list-text blues" style="text-align:left;">
				<img src='../templates/met/images/columnnox.gif' style='margin:0px 5px;' /><input type="text" class="text nonull" value="<?=$info['name']; ?>" name="name_<?=$info['id']; ?>" />&nbsp;<?php if($info['module']=='-1'){ ?><a href='add_colum.php?lang=cn&id=<?=$info['id']; ?>&type=2&action=add' onclick="return addcolumn($(this),'<?=$info['id']; ?>',2,'../templates/met/images');" class='hovertips'><span>添加二级栏目</span></a><?php } ?>
			</td>
			<td class="list-text">
			<select name="nav_<?=$info['id']; ?>">
	
				<option value="0" <?php  if ($info['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

			<td class="list-text">
			
						<select name="module_<?=$info['id']; ?>" >
<option value="-1" <?php  if ($info['module']=="-1") { echo "selected='selected'";}?>>父栏目模块</option>
<option value="1" <?php  if ($info['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($info['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($info['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($info['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($info['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($info['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($info['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($info['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($info['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select>
			</td>
			<td class="list-text">tempel</td>
			<td class="list-text"><input type="text" class="text no_order" value="<?=$info['home_order']; ?>" name="index_num_<?=$info['id']; ?>" /></td>
			

	
			<td class="list-text">
				<select name="access_<?=$info['id']; ?>">
	
			<option value="0" <?php  if ($info['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>				
  					
			<td class="list-text">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$info['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info['id']; ?>" onClick="return linkSmit($(this),1);" >删除</a></div>
			</td>
        </tr>	
 <?php 
 		}
 	
}
 ?>    
 
 
 <!-- 请柬begain -->
 <?php 

	 	$res=sql('s', 'colum','*','where user="'.$user.'"  and class="请柬视频"');
	 	if($res){
	 	$info=$res;
	 		$id=$info["id"];
			$res1=sql('s', 'colum','*','where user="'.$user.'"  and class='.$id);
			$res2=sql('frow', 'colum','*','where user="'.$user.'"  and class='.$id);
?>
	 <tr class="mouse click column_1">
			<td class="list-text">
				<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$info['id']; ?>' />
			</td>
			<td class="list-text">
				<input type="text" class="text no_order" value="<?=$info['wed_order']; ?>" name="no_order_<?=$info['id']; ?>" />
				
			</td>
			<td class="list-text blues" style="text-align:left;">
				<img src='../templates/met/images/columnx.gif' class='columnimg' id='img_<?=$info['id']; ?>' onclick="oncolumn($(this),'<?=$info['id']; ?>','../templates/met/images');" alt='' /><input type="text" class="text nonull" value="<?=$info['name']; ?>" name="name_<?=$info['id']; ?>" />&nbsp;
			</td>
			<td class="list-text">
			<select name="nav_<?=$info['id']; ?>">
	
				<option value="0" <?php  if ($info['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

			<td class="list-text">
			<select name="module_<?=$info['id']; ?>" >

<option value="-1"selected='selected'>父栏目模块</option>


            </select>
			</td>
			<td class="list-text">tempel</td>
			<td class="list-text"><input type="text" class="text no_order" value="<?=$info['home_order']; ?>" name="index_num_<?=$info['id']; ?>" /></td>
			

	
			<td class="list-text">
				<select name="access_<?=$info['id']; ?>">
	
			<option value="0" <?php  if ($info['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>				
  					
			<td class="list-text">
				<div style='white-space:nowrap;display:none;'><a href="column_editor.php?lang=cn&id=<?=$info['id']; ?>">编辑</a>&nbsp;&nbsp;<!--  <a href="../control.php?oper=column_del&id=<?=$info['id']; ?>" onClick="return linkSmit($(this),1);" >删除</a>--></div>
			</td>
        </tr>	
<?php 
 	foreach ($res1 as $info1){			
?>       
   <tr id="class_<?=$info1['id']; ?>" class="none mouse click columnz_<?=$info['id']; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$info1['id']; ?>');" id="id" value='<?=$info1['id']; ?>' bgid_<?=$info['id']; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="<?=$info1['wed_order']; ?>" name="no_order_<?=$info1['id']; ?>" />
				
			</td>
            <td class="list-text2" id="tr<?=$info1['id']; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="<?=$info1['name']; ?>" name="name_<?=$info1['id']; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$info1['id']; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$info1['id']; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$info1['id']; ?>">
	
				<option value="0" <?php  if ($info1['wed_isshow']=="0") { echo "selected='selected'";}?> >不显示</option>
	
				<option value="1" <?php  if ($info1['wed_isshow']=="1") { echo "selected='selected'";}?>><font class='red'>头部主导航条</font></option>
	
				<option value="2" <?php  if ($info1['wed_isshow']=="2") { echo "selected='selected'";}?>><font class='blue'>首页界面</font></option>
	
				<option value="3" <?php  if ($info1['wed_isshow']=="3") { echo "selected='selected'";}?>><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
                        <select name="module_<?=$info1['id']; ?>" >

<option value="-1" selected='selected'>请柬视频</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="<?=$info1['home_order']; ?>" name="index_num_<?=$info1['id']; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$info1['id']; ?>">
	
			<option value="0" <?php  if ($info1['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($info1['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($info1['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($info1['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;display:none;'><a href="column_editor.php?lang=cn&id=<?=$info1['id']; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$info1['id']; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
        
 <?php 				
		$i=$i+1;
		}
}
			
?>
  <!-- 	请柬end -->
 
  <tr> 
			<td class="list">选择</td>
			<td class="list">排序</td>
			<td class="list">栏目名称</td>
			<td class="list">导航栏显示</td>
	
			<td class="list">所属模块</td>
			<td class="list">栏目文件夹</td>
			<td class="list">标识</td>
	
			<td class="list">权限</td>
					
			<td class="list">操作</td>
		</tr>  
		<tr> 
			<td class="all-submit" colspan="9">
				<div class="checkall"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'del')" value="checkbox" /></div>
				<div class="labelall"><label for="chkAll">全选</label></div>
				<div style="text-align:center;">
				<input name="saveorder" type='submit' value='保存' class="submit"  />
				
				</div>
			</td>
        </tr>
   	   </table>
              <input name="action" type="hidden" id="action" value="del">
			  <input name="allid" type="hidden" id="allid" value="">

</form>	   
   	   </td> 
   	   </tr>
		<tr> 
			
        </tr>
		<tr> 
			<td class="all-submit" colspan="3">
				<div class="li-submit">
					<form method="POST" name="myform" action="../advanced/copy.htm?lang=cn&action=copy&table=1" target="_self">
						<input name="allid" type="hidden" id="allid" value="" />
						<select name="copylang">
							<option value="">选择语言</option>

							<option value="cn">简体中文</option>

							<option value="en">English</option>

						</select>
						&nbsp;<input name="copycontent" type='checkbox' value='1' id="copycontent" class="checkbox">&nbsp;<label for="copycontent">同时复制内容</label>
					</form>
				</div>
				<input name="submit" type='submit' value='复制' class="submit li-submit" onclick="return met_modify($(this),'myform','editor','columncook');" /> 
<div class="li-submit">注意：二三级栏目不可以单独复制，需连同一级栏目一起复制！</div>
			</td>
        </tr>
		<tr>
			<td class="footer" colspan="3"> </td>
		</tr>
</table>
		
<script type="text/javascript">
	var bigdb = '';
if(bigdb!=''){
	var biginc = bigdb.split(',');
		for(var m=0;m<biginc.length;m++){
			var bigc = $("#img_"+biginc[m]);
				if(bigc)bigc.click();
			var tbig = $("input[name='bigclass_"+biginc[m]+"']").val();
				if(tbig!=0){
					var tbigc = $("#img_"+tbig);
						tbigc.click();
				}
		}
}
function newmodule(my,module,type){
	var mtd = my.parent('td').next();
	if(type>1)mtd.find("span").hide();
	if(my.val()==999){
		mtd.find("input").hide();
		mtd.find('font').empty();
		mtd.find("input[name*='out_url_new-']").show();
	}else if(my.val()>5 && my.val()!=8){
		mtd.find('input').hide();
		mtd.find('font').text(addmodulefold(my.val()));
	}else{
		mtd.find("input").hide();
		mtd.find('font').empty();
		if(type>1 && my.val()==module){
			mtd.find("span").show();
		}else{
		mtd.find("input.foldernonull").show();
		}
	}
}
function addmodulefold(module){
	var fname='';
	switch(module){
		case '6':fname = 'job';break;
		case '7':fname = 'message';break;
		case '9':fname = 'link';break;
		case '10':fname= 'member';break;
		case '11':fname= 'search';break;
		case '12':fname= 'sitemap';break;
		case '100':fname= 'product';break;
		case '101':fname= 'img';break;
	}
	return fname;
}
</script>
	
</body>
</html>
